package com.hzhq.contract.bean.dto;

import com.hzhq.contract.bean.entity.Admin;
import com.hzhq.contract.bean.entity.Depart;
import com.hzhq.contract.bean.entity.Role;
import com.hzhq.contract.bean.entity.User;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.DBRef;

import java.util.Date;

/**
 * @author hzhq
 * @create 2021/4/10 5:04 下午
 * @email hzhq1255@163.com
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("UserRoleDTO")
public class UserRoleDTO {

    private ObjectId id;
    @ApiModelProperty(value = "用户")
    private User user;
    @ApiModelProperty(value = "角色")
    private Role role;
//    @ApiModelProperty(value = "部门")
//    private Depart depart;
    @ApiModelProperty(value = "授予的管理员")
    private Admin admin;
    @ApiModelProperty(value = "授予时间")
    private Date assignTime;
    @ApiModelProperty("是否删除")
    private Integer deleted;
    @ApiModelProperty("是否通过")
    private Integer passed;
}
